<?php
/**
 * gcFramework
 *
 * Development framework for PHP 5 or newer
 *
 * @package		gcFramework
 * @author		Adam Martin
 * @copyright	Copyright (c) 2006
 * @license		http://www.gcFramework.com/web/license.html
 * @link		http://www.gcFramework.com
 * @since		Version 1.0
 */
 
 //instantiate class
 $cart = new cart;
 
 class cart {
 	public function summary($count=0){
 		if($count <= 0){
			$cartSummary = "[lang:CART_EMPTY]";	
		} else {
			$cartSummary = "[lang:CART_SUMMARY_START] ";
			if($count > 1){
			 $cartSummary .= $count."[lang:CART_SUMMARY_MULTIEND]";
			} else {
				$cartSummary .= $count."[lang:CART_SUMMARY_END]";	
			}
 		}
 		return $cartSummary;
 	}
 }
?>